﻿@{
    ViewBag.Title = "用户注册";
    Layout = GetPath(SystemDirectory.Shared, "_Dialog.cshtml");
}

@model RegisterModel

@if (IsValided)
{
<div class="homepage-news-wrapper">
    <div id="page-comments">
    	<div class="page-comment-interior">
			<div class="comments-container">
		        <form enctype="multipart/form-data" method="post">
                    <div><b>用户名</b> @Html.ValidationMessageFor(m => m.UserName)@Html.TextBoxFor(model => model.UserName, new { @class = "txt" })</div>
                    <div><b>密码</b> @Html.ValidationMessageFor(m => m.Password)@Html.PasswordFor(model => model.Password, new { @class = "txt" })</div>
                    <div><b>确认密码</b> @Html.ValidationMessageFor(m => m.ConfirmPassword)@Html.PasswordFor(model => model.ConfirmPassword, new { @class = "txt" })</div>
                    <div><b>电子邮件</b> @Html.ValidationMessageFor(m => m.Email)@Html.TextBoxFor(model => model.Email, new { @class = "txt" })</div>
                    @if (Settings.QuestionAnswer)
                    {
                    <div><b>密码问题</b> @Html.ValidationMessageFor(m => m.PasswordQuestion)@Html.TextBoxFor(model => model.PasswordQuestion, new { @class = "txt" })</div>
                    <div><b>问题答案</b> @Html.ValidationMessageFor(m => m.PasswordAnswer)@Html.TextBoxFor(model => model.PasswordAnswer, new { @class = "txt" })</div>
                    }
                    @if (Settings.AccountActivation == AccountActivation.InvitationOnly)
                    {
                    <div><b>邀请码</b> @Html.ValidationMessageFor(m => m.PublicKey)@Html.TextBoxFor(model => model.PublicKey, new { @class = "txt" })</div>
                    }
                    <div style="text-align:center;">
                        <button class="ui-button button1" type="submit">
		                    <span>
			                    <span>注册新帐户</span>
		                    </span>
	                    </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
}
    